export function get(url,method,data){
    wx.showLoading({
      title: '加载中',
    })
    return new Promise((resolve,reject)=>{
        wx.request({
            url:`https://api.it120.cc/${url}`,
            method,
            data,
            success(res){
                wx.hideLoading({
                  success: (res) => {},
                })
                resolve(res)
            }
        })
    })
}